<?php
return [

    /*********************** 以下为view ***********************/
    "GET login.html" => "site/login",
    "GET article/<aid:\d+>.html" => "site/detail", //资讯详情页
    "GET mood.html" => "mood/index", //碎碎念
    "GET travel.html" =>'travel/index', //旅途相册
    "GET album/<aid:\d+>.html" =>'travel/photo',//相片
    "GET comment.html" =>'comment/index',//留言
    "GET share.html"=>'site/share', //分享

    /********-------------请求-----------------**********/
    "POST /api/site/login" =>'sub-login/login-post',
    "POST /api/site/register"=>'sub-login/do-register',
    "POST /api/site/logout" =>'sub-login/logout',
    "GET /api/captcha" => "sub-login/captcha",//图像验证码

    "GET /api/article/list" =>'article/list',
    "GET /api/article/status" =>'article/status',
    "POST /api/article/modify/<id:\d+>" =>'article/modify',
    "GET /api/article/edit/<id:\d+>" =>'article/edit',  //通过id获取数据
    "POST /api/article/upload" =>'article/upload',
    "DELETE /api/article/delete/<id:\d+>" =>'article/delete',

    "POST /api/upload-img/up" =>'upload-img/up',
    "POST /api/upload-img/photo" =>'upload-img/photo',

    "GET /api/article/editor"=>'article/editor',
    "POST /api/article/editor"=>'article/editor',

    "GET /api/tag/list" =>'tag/list',
    "DELETE /api/tag/delete/<id:\d+>" => "tag/delete", //标签删除
    "GET /api/tag/edit/<id:\d+>" => "tag/edit",  //获取信息
    "POST /api/tag/modify/<id:\d+>" => "tag/modify", //编辑修改

    "GET /api/category/list" =>'/category/list',

    "post /api/album/add"=>"album/add",
    "GET /api/album/list"=>'/album/list',
    "GET /api/album/edit/<id:\d+>"=>'album/edit',

    "POST /api/album/modify/<id:\d+>" =>'album/modify',

    "GET /api/album/photos/<id:\d+>" =>'album/photos',

    "DELETE /api/photo/delete/<id:\d+>" =>'photo/delete',
    "GET /api/photo/edit/<id:\d+>" =>'photo/edit',
    "POST /api/photo/modify/<id:\d+>" =>'photo/modify',

    "GET /api/photo/set/<id:\d+>" =>'photo/set',
    "GET /api/photo/move/<id:\d+>" =>'photo/move',


    "GeT /api/category/list" => 'category/list',
    "DELETE /api/category/delete/<id:\d+>" => 'category/delete',
    "GET /api/category/edit/<id:\d+>" =>'category/edit',
    "POST /api/category/modify/<id:\d+>" =>'category/modify',


    'GET /api/article/verify'  => 'article/verify',
    'POST /api/article/verifyload'  => 'article/verifyload',

    'GET /api/mood/list'  =>'mood/list',
    "DELETE /api/mood/delete/<id:\d+>" => 'mood/delete',
    "GET /api/mood/edit/<id:\d+>" =>'mood/edit',
    "POST /api/mood/modify/<id:\d+>" =>'mood/modify',
    'POST /api/mood/verifyload'  => 'mood/verifyload',
    "GET /api/mood/status" =>'mood/status',

    'GET /api/comment/list'  =>'comment/list',
    'POST /api/comment/modify/<id:\d+>' =>'comment/modify',


    'GET /api/user/list' => 'user/list',
    'POST /api/user/modify/<id:\d+>' => 'user/modify',
    'GET /api/user/delete/<id:\d+>' => 'user/delete',
    "GET /api/user/edit/<id:\d+>" =>'user/edit',
];
